t3 ways to write functions